Reading-Notes

Trees Summary :

A Tree node : is a component which may contain it’s own values, and references to other nodes.
The root : is the node at the beginning of the tree.
K : the maximum number of children any node may have in the tree.

image1

Traversing a tree allows us to search for a node, print out the contents of a tree, and much more .

image2

Binary Tree Vs K-ary Trees :

image3

image4

Pseudocode :
Adding a node:
Big O :
Binary Tree :
Sources:

source